<?php	
	include "config/koneksi.php";
	$idb=$_POST['idp'];
	$namab=$_POST['id_pet'];
	$jml=$_POST['id_bar'];
	$harga=$_POST['id_kon'];
	$ket=$_POST['jml'];
	$ket2=$_POST['tgl'];
	$query=oci_parse($conn, "update Penjualan set ID_PET='$namab', ID_BAR='$jml', ID_KON='$harga', JML='$ket' , TGL='$ket2' WHERE ID_PEN='$idp'");
	oci_execute($query);
		echo "<script>
				window.alert('Data Sudah Diubah');
				window.location=('datapenjualan.php')
			 </script>";

?>
